import Fill from "ol/style/Fill";
import Stroke from "ol/style/Stroke";
import Style from "ol/style/Style";
import { Circle, Icon } from "ol/style"; // 导入 ol/style/Circle


export const circleStyle = new Style({
  image: new Circle({
    radius: 10, // 圆点半径
    fill: new Fill({
      color: 'red', // 填充颜色
    }),
    stroke: new Stroke({
      color: 'white', // 边框颜色
      width: 2, // 边框宽度
    }),
  }),
});

export const iconStyle = new Style({
  image: new Icon({
    anchor: [0.5, 52],
    anchorXUnits: 'fraction',
    anchorYUnits: 'pixels',
    src: 'map/icon/纠纷类警情@2x.png',
  }),
});